package com.neusoft.restaurant.controller;

import com.neusoft.restaurant.common.exception.BizException;
import com.neusoft.restaurant.config.utils.R;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author: zhongda
 * @createTime: 2023/11/24 15:49
 * @email: fromzhongda@163.com
 * @description:
 */
@RestController
@RequestMapping("/api/exception")
public class ExceptionController {
    @GetMapping("/test")
    public R exception() {
        throw new BizException(404, "没找到");
    }
}
